package com.guchenbo.example.io;

import java.nio.charset.StandardCharsets;

/**
 * @author guchenbo
 * @date 2022/4/29
 */
public class StringAsciiSerializer implements GuSerializer<String> {

    @Override
    public byte[] serialize(String data) {
        return data.getBytes(StandardCharsets.US_ASCII);
    }
}
